import Cookies from 'js-cookie'

const TokenKey = 'hr_token'
const TimeKey = 'hr_time'
// 获取token
export function getToken() {
  return Cookies.get(TokenKey)
}
// 设置token
export function setToken(token) {
  return Cookies.set(TokenKey, token)
}
// 删除token
export function removeToken() {
  return Cookies.remove(TokenKey)
}
// 存储时间
export function setTime(time) {
  Cookies.set(TimeKey, time)
}
// 获取时间
export function getTime() {
  return Cookies.get(TimeKey)
}

